Skip to content

Only query users in NTDS.users#37

Merged
Schamper merged 1 commit intofox-it:mainfrom
Matthijsy:ntds-users
Feb 19, 2026
Merged

Only query users in NTDS.users#37
Schamper merged 1 commit intofox-it:mainfrom
Matthijsy:ntds-users

Conversation

@Matthijsy
Copy link
Contributor

Currently the NTDS.users method queries all the person objectes. However, not all persons in an NTDS are actual users, some of them can be contacts for example. This currently causes target to crash, since a contact does not have attributes such as sam_account_name.

After this MR we filter only on the objectClass user.

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (798cf10) to head (3325ef4).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dissect/database/ese/ntds/ntds.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main     #37   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files        150     150           
  Lines       4067    4067           
=====================================
  Misses      4067    4067           
Flag Coverage Δ
unittests 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Schamper Schamper merged commit 8cb301f into fox-it:main Feb 19, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants